package common.post.service;

import java.util.List;

import common.customer.bean.Customer;
import common.post.bean.Post;
import common.system.bean.City;

public interface PostService {
	Post getPostById(long postId);
	//发帖
	long addPost(Post post);
	//发验证贴
	int publishValidationPost(String postType,
								  String sinfoType,
								  String postTitle,
								  String phone,
								  String qq,
								  String qqName,
								  String areaId,
								  String desc,
								  String desc2,
								  String channel,
								  City city,
								  Customer user);
	List<Post> getGonggaoByTypeAndChannel(String postType,String channel);
	List<Post> getPostByType(String postType,int cityId,int page,int pageSize);
	long countPostByType(String postType,int cityId);
}
